package com.lzk.product.openfeignClients;

import com.lzk.JsonResult;
import com.lzk.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = ProFeignClientFallbackFactory.class)//指定调用服务名称
public interface ProductFeignClient {


    @PostMapping("store")
    JsonResult save(@RequestBody Store store);

}
